/*
 * @Description: 
 * @Author: shuliang
 * @Date: 2022-05-06 16:44:50
 * @LastEditTime: 2022-05-11 15:10:38
 * @LastEditors: shuliang
 */
import request from '/@/utils/request';

/**
 * 后端控制路由，isRequestRoutes 为 true，则开启后端控制路由
 * @method getMenuAdmin 获取后端动态路由菜单(admin)
 * @method getMenuTest 获取后端动态路由菜单(test)
 */
export function useMenuApi() {
	return {
		getMenuAdmin: (params?: object) => {
			return request({
				url: '/api/auth/menu',
				method: 'get',
				params,
			});
		}
	};
}
